<?php
if(!defined("ADMREAD")) exit();
global $sess,$lang,$ADMIN_PERM_ARRAY,$ADMIN_ID,$CHECK_ADMIN;
$block = array();
if(in_array('photos',$ADMIN_PERM_ARRAY) || in_array($ADMIN_ID,$CHECK_ADMIN['admid'])){
$block = array();
$block['id'] = 'photos';
$block['title'] = $lang['menu_photos'];
$block['link'] = array("\"photos.php?dn=index&ops=$sess[hash]\""=>$lang['all_set'],
                       "\"photos.php?dn=photoscat&ops=$sess[hash]\""=>$lang['all_gal'],
                       "\"photos.php?dn=photoslist&ops=$sess[hash]\""=>$lang['all_images'],
                       "\"photos.php?dn=photoscatadd&ops=$sess[hash]\""=>$lang['add_gal'],
                       "\"photos.php?dn=photosadd&ops=$sess[hash]\""=>$lang['add_img'],
                       "\"photos.php?dn=photosupmass&ops=$sess[hash]\""=>$lang['add_mass'],
                       "\"media.php?dn=index&ops=$sess[hash]\""=>$lang['all_media'],
                       "\"media.php?dn=medialistadd&ops=$sess[hash]\""=>$lang['add_media'],
                       "\"media.php?dn=mediaimgadd&ops=$sess[hash]\""=>$lang['add_img']);
}
?>